import java.util.Scanner;
public class Jck3 {

	public static void main(String[] args) {

		  int [] arr= {19,28,37,46,50};
		  
		  Scanner scanner= new Scanner(System.in);
		  System.out.println("数组中的元素为:19,28,37,46,50 ");
		  System.out.println("请输入元素!");
		  int sum=scanner.nextInt();
		
			int index= -1;
		
		for(int i=0; i<arr.length; i++) {
			if(sum==arr[i]) {
				index=i;
			}
		}
	       if(index!=-1) {
	    	   System.out.println(sum+"的索引值是："+index);
	       }else {
			System.out.println(sum+"不在数组中");
		}

	
	}

}
